package com.ruoyi.eqmonitor.phase1.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * @author breeze
 * @date 2023-03-26
 */
public class OptDevicePhase1MonitorData extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/** 主键 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	/** 设备编码 */
	@Excel(name = "设备编码")
	private String deviceCode;

	/** 监测指标 */
	@Excel(name = "监测指标")
	private String monitorCode;

	/** 监测指标值 */
	@Excel(name = "监测指标值")
	private double monitorValue;

	/** 监测时间 */
	@JsonFormat(pattern = "yyyy-MM-dd")
	@Excel(name = "监测时间", width = 30, dateFormat = "yyyy-MM-dd")
	private Date monitorTime;

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setDeviceCode(String deviceCode) {
		this.deviceCode = deviceCode;
	}

	public String getDeviceCode() {
		return deviceCode;
	}

	public void setMonitorCode(String monitorCode) {
		this.monitorCode = monitorCode;
	}

	public String getMonitorCode() {
		return monitorCode;
	}

	public double getMonitorValue() {
		return monitorValue;
	}

	public void setMonitorValue(double monitorValue) {
		this.monitorValue = monitorValue;
	}

	public void setMonitorTime(Date monitorTime) {
		this.monitorTime = monitorTime;
	}

	public Date getMonitorTime() {
		return monitorTime;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId())
				.append("deviceCode", getDeviceCode()).append("monitorCode", getMonitorCode())
				.append("monitorValue", getMonitorValue()).append("monitorTime", getMonitorTime()).toString();
	}
}